#include <iostream>

using namespace std;

int main()
{

    int n,a=1,b=1, f, i;
	std::cout<<"numarul de elemente n=";std::cin>>n;
        std::cout<<"primii "<<n<<"termeni ai lui Fibonacci sunr:";
        std::cout<<a<<","<<b;
	for (i=3;i<=20;i++)
	  {
	      f=a+b;
         std::cout<<","<<f;
	      a=b;
	      b=f;
	  }

return 0;

}

